package com.tolls;

public class MaxmunTest {

    public static <T extends Comparable<T>> T maximun(T x, T y, T z){

        T max = x;
        if(y.compareTo(max)>0){

            max = y;
        }

        if(z.compareTo(max)>0){

            max = z;
        }

        return max;
    }
}
